using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Emlyn.Applications.Servant
{
    public partial class frmUpdateAvailable : Form
    {
        public frmUpdateAvailable()
        {
            InitializeComponent();
        }

        public static DialogResult PromptForUpdate(string lThisVersion, string lNewVersion)
        {
            frmUpdateAvailable lfrm = new frmUpdateAvailable();

            lfrm.lblMessage.Text = 
                    "You are running v" + lThisVersion + " of Servant." + Environment.NewLine +
                    "The latest is v" + lNewVersion + ". " + Environment.NewLine +
                    "Would you like to upgrade now?";

            return lfrm.ShowDialog();
        }
    }
}